import React from 'react'
import { BrowserRouter as Router, Route, Switch } from 'react-router-dom'

import Main from './layout/main/Index'
import Login from './layout/login'

const App = () => {
    return (
        <Router>
            <Switch>
            <Route path="/login" component = { Login } />
                <Route path="/" component = { Main } />
            </Switch>
        </Router>
    )
}

export default App
